<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if(isset($title)){echo $title;} ?> </title>
<base href="<?php echo base_url(); ?>" />
<link href="assets/css/login.css" rel="stylesheet" rev="stylesheet" type="text/css" media="all" />
<link href="assets/css/demo.css" rel="stylesheet" rev="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="assets/js/jquery1.42.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.SuperSlide.js"></script>
<script type="text/javascript">
if (top.location != self.location) {top.location=self.location;}
function pressCaptcha(obj)
{
	obj.value = obj.value.toLowerCase();
}
</script>
<SCRIPT type="text/javascript">
 function check_form()
	{
            if ($('#username').val()=="")
		{
                $('#error-box').html("系统名称不能为空!");
	        $('#username').focus();
		}else{
                   if ($('#password').val()=="")
                   {
                         $('#error-box').html("密码不能为空!");
                       $('#password').focus();
	        }else{
                 $('#loginForm').submit();
                }
                }
         
	}
 function chk_name(){
      if ($('#password').val()!=""){
          $('#loginForm').submit();
      }else{
            $('#password').focus();
      }

 }
</SCRIPT>
</head>
<body>
<div class="header">
  <h1 class="headerLogo"><a title="<?php if(isset($title)){echo $title;} ?> " target="_blank" href="<?php echo base_url() ?>"><img alt="logo" src="assets/images/logo.gif"></a></h1>
	<div class="headerNav">
		<a target="_blank" href='<?php uri_string() ?>/ppms'>过程管理</a>
		<a target="" href="<?php uri_string() ?>/pqms">现场管理</a>
		<a target="" href="<?php uri_string() ?>/bbs">系统论坛</a>
	</div>
</div>
<div class="banner">

<div class="login-aside">
  <div id="o-box-up"></div>
  <div id="o-box-down"  style="table-layout:fixed;">
   <div class="error-box" id="error-box"><?php if (isset($error)){echo $error;}?></div>
   
  <form id="loginForm" method="post" name="loginForm"  action="<?php echo site_url("main/checklogin"); ?>" target="_top">
   <div class="fm-item">
	   <label for="logonId" class="form-label">系统名称：</label>
	   <input type="text" value="" maxlength="100" name="username" id="username"class="i-text" >    
       <div class="ui-form-explain"></div>
  </div>
  
  <div class="fm-item">
	   <label for="logonId" class="form-label">登陆密码：</label>
	   <input type="password" value="" maxlength="100" name="password" id="password"class="i-text" onkeydown="javascript:if(event.keyCode==13){check_form();}">    
       <div class="ui-form-explain"></div>
  </div>
  <div class="fm-item">
	   <label for="logonId" class="form-label"></label>
           <input type="button" value="" tabindex="4" id="send-btn" class="btn-login" onclick="javascript:check_form()" /> 
       <div class="ui-form-explain"></div>
  </div>
  
  </form>
  
  </div>

</div>

	<div class="bd">
		<ul>
			<li style="background:url(assets/themes/theme-pic1.jpg) #CCE1F3 center 0 no-repeat;"></li>
			<li style="background:url(assets/themes/theme-pic2.jpg) #BCE0FF center 0 no-repeat;"></li>
		</ul>
	</div>

	<div class="hd"><ul></ul></div>
</div>
<script type="text/javascript">jQuery(".banner").slide({ titCell:".hd ul", mainCell:".bd ul", effect:"fold",  autoPlay:true, autoPage:true, trigger:"click" });</script>
<div class="banner-shadow"></div>
<div class="footer">
   <p>  Powered by <?php if(isset($copyright)){echo $copyright;} ?> <em>,</em> <B><A style="COLOR: #666" href="<? echo base_url() ?>" target="_blank"><?php if (isset($copyright)){echo $version."-".$system_os;}?></A></B>,&nbsp;&nbsp;Processed in&nbsp;{elapsed_time}&nbsp;second(s).</p>
</div>
</body>
</html>
